package cn.mxz.controller;




import cn.mxz.pojo.ResultData;
import cn.mxz.pojo.Users;
import cn.mxz.service.impl.TbUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 作者；朱洪旭
 * 时间；2021/12/2 16:32
 */
@RestController
@RequestMapping("/userlogin")
@CrossOrigin
public class UserloginController {
    @Autowired
    private TbUserServiceImpl tbUserService;
    @PostMapping
    public ResultData Userlogin( Users users){
        ResultData loginuser = tbUserService.loginuser(users);
        return  loginuser;
    }
}
